const printId = (id: number | string): void => console.log(`Your ID is: ${id}`)

printId(101)
printId('202A')

// printId(true) // Error: Argument of type 'boolean' is not assignable to parameter of type 'string | number'.

console.log('-------------------')

let cardId: string | number = 'Henry'

cardId = 20250728 // 也可以改值
printId(cardId)

export {}
